package com.zznj.xzjc.adapter;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zznj.xzjc.R;

import java.util.List;
import java.util.Map;

import androidx.annotation.Nullable;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/7
 */
public class XianSuoAdapter extends BaseQuickAdapter<Map<String,Object>, BaseViewHolder> {
    private OnImageClickListener mOnImageClickListener;
    public void setOnImageClickListener( OnImageClickListener listener) {
        mOnImageClickListener = listener;
    }
    public interface OnImageClickListener {

        void onItemClick(View view, int c_pos,int f_pos);
    }

    public XianSuoAdapter(int layoutResId, @Nullable List<Map<String,Object>> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Map<String,Object> item) {
        helper.setText(R.id.tv_title,"投诉江津花园垃圾转运站危害市民安全");
        helper.setText(R.id.tv_date,"2020-10-22");
        helper.setText(R.id.tv_address,"湖北省");

    }
}
